﻿<UserControl x:Class="Abhiruchi_Phase1.UC_ORG_Location"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             mc:Ignorable="d" d:DesignWidth="497">

    <Grid Background="#FFF0F3F6"  VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Line   HorizontalAlignment="Stretch" Width="Auto"
        Stretch="Uniform" StrokeThickness="5" X1="0" Y1="0" X2="1" Y2="0" VerticalAlignment="Top" Margin="0,74,0,0" Grid.ColumnSpan="4" Height="9">
            <Shape.Stroke>
                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                    <GradientStop Color="Transparent" Offset="0" />
                    <GradientStop Color="Silver" Offset="1" />
                    <GradientStop Color="Transparent" Offset="1" />
                </LinearGradientBrush>
            </Shape.Stroke>
        </Line>

        <Label Content="LocationID " Height="30" HorizontalAlignment="Left" Margin="29,0,0,188" Name="lblLocIdCaption" VerticalAlignment="Bottom" FontFamily="Segoe UI" FontSize="12" Width="88" FontWeight="Normal"  Foreground="#FF382D2C" />
        <Label Content="Location Name "  Height="30" HorizontalAlignment="Left" Margin="24,136,0,0" Name="lblLocName" VerticalAlignment="Top" FontFamily="Segoe UI" FontSize="12" FontWeight="Normal" Grid.Column="2" Foreground="#FF382D2C" />
        <TextBox Height="22" Margin="0,139,0,193" Name="txtLocName" VerticalAlignment="Center" Width="Auto" LostFocus="txtLocName_LostFocus" FontFamily="Segoe UI" FontSize="12" FontWeight="Normal" Grid.Column="3" Foreground="Black" TabIndex="1" MaxLength="0" />
        <Label Content="Address " Height="25" HorizontalAlignment="Left" Margin="29,173,0,0" Name="lblAddress" VerticalAlignment="Top" FontFamily="Segoe UI" FontSize="12" FontWeight="Normal" Foreground="#FF382D2C" />
        <TextBox DataContext="{Binding}"   AcceptsReturn="True"  VerticalScrollBarVisibility="Auto" FontFamily="Segoe UI" FontSize="12" FontWeight="Normal"  Margin="0,176,0,136" Name="txtAddress" TextAlignment="Justify" TextWrapping="Wrap"  VerticalAlignment="Stretch" Height="40" Width="Auto" Grid.Column="1" Grid.ColumnSpan="3" Foreground="Black" TabIndex="2" />
        <Label Content="Location Incharge " Height="30" HorizontalAlignment="Left" Margin="29,227,0,0" Name="lblLocInchrge" VerticalAlignment="Top" FontFamily="Segoe UI" FontSize="12" FontWeight="Normal" Foreground="#FF382D2C" />
        <Label Content="Contact Number " Height="32" HorizontalAlignment="Left" Margin="21,230,0,0" Name="lblContactNo" VerticalAlignment="Top" FontFamily="Segoe UI" FontSize="12" FontWeight="Normal" Grid.Column="2" Foreground="#FF382D2C" />
        <TextBox Height="22"  Margin="0,228,0,104" Name="txtContactNo"  Width="Auto" FontFamily="Segoe UI" FontSize="12" VerticalAlignment="Center" FontWeight="Normal" Grid.Column="3" Foreground="Black" MaxLength="16" TabIndex="4" />
        <CheckBox Content=" Is Active" Height="18" HorizontalAlignment="Left" Margin="0,265,0,0" Name="chkIsActive" VerticalAlignment="Top" Width="90" IsChecked="True" FontFamily="Segoe UI" FontSize="12" FontWeight="Normal" Grid.Column="1" Foreground="#FF382D2C" TabIndex="5" />
        <Button Content="Button" Height="0" HorizontalAlignment="Left" Margin="9,30,0,0" Name="button1" VerticalAlignment="Top" Width="75" />
       
        <Button Content="Save" Height="22" HorizontalAlignment="Left" Margin="0,293,0,0" Name="btnSave" VerticalAlignment="Top" Width="100" Click="btnSave_Click" FontFamily="Segoe UI" FontSize="12" FontWeight="Normal" Grid.Column="1" TabIndex="6" />
        <Button Content="Clear" Height="22" HorizontalAlignment="Left" Margin="114,293,0,0" Name="btnClear" VerticalAlignment="Top" Width="100" Click="btnClear_Click" FontFamily="Segoe UI" FontSize="12" FontWeight="Normal" Grid.Column="1" Grid.ColumnSpan="2" TabIndex="7" />
        <telerik:RadGridView AutoGenerateColumns="True"    Margin="34,2,0,120"  Name="radGridLocData" VerticalAlignment="Stretch" Width="Auto" Height="457" RowActivated="radGrdData_RowActivated" IsReadOnly="True" FontFamily="Segoe UI" Background="#FFF0F3F6" FontWeight="Bold" Grid.ColumnSpan="4" FontSize="12" Grid.Row="1" />
        <ComboBox FontFamily="Segoe UI" FontSize="12" FontWeight="Normal" Height="22" VerticalAlignment="Stretch" ItemsSource="{Binding}" Margin="0,231,0,101" Name="cmbLocInchrge" Width="Auto" Grid.Column="1" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" Foreground="Black" TabIndex="3" />
        <Image HorizontalAlignment="Left" Margin="5,22,0,295" Name="image1" Source="/Abhiruchi_Phase1;component/Images/Location.png" Stretch="Fill" Width="37" Height="37" />
        <Label Content="Existing Location Details" Height="28" HorizontalAlignment="Left" Margin="27,320,0,0" Name="lblGrdHeader" VerticalAlignment="Top" Width="189" FontWeight="Bold" FontSize="12" Foreground="#FF2554C7" FontFamily="Segoe UI" Grid.ColumnSpan="2" />
        <Label Content="Location Details" FontSize="12" FontWeight="Bold" Foreground="#FF2554C7" Height="28" HorizontalAlignment="Left" Margin="27,100,0,0" Name="lblFrmHeader" VerticalAlignment="Top" Width="162" FontFamily="Segoe UI" Grid.ColumnSpan="2" />
        <Label Content="Location Master"  Margin="41,12,0,0" Name="lblLocHeading" VerticalAlignment="Top" Foreground="#FF666362" FontWeight="Normal" FontFamily="Corbel" FontSize="15" Height="30" HorizontalAlignment="Left" Grid.ColumnSpan="2" />
        <Label Content="" FontFamily="Segoe UI" FontSize="18" FontWeight="Bold"  Height="30" HorizontalAlignment="Left" Margin="46,32,0,0" Name="lblMode" VerticalAlignment="Top" Width="73" />
        <TextBox Background="#FFF0F3F6"  FontFamily="Segoe UI" FontSize="12" FontWeight="Normal" Height="22"  IsReadOnly="True" Margin="0,140,0,192" Name="lblLocId"  VerticalAlignment="Stretch" Width="Auto" Grid.Column="1" Foreground="Black" />
        <Label Content="Status" FontFamily="Segoe UI" FontSize="12" FontWeight="Normal" Height="32" HorizontalAlignment="Left" Margin="29,258,0,0" Name="lblStatus" VerticalAlignment="Top" Foreground="#FF382D2C" />
        <Label Content="*" FontFamily="Candara" FontSize="14" FontWeight="Bold" HorizontalAlignment="Left" Margin="90,138,0,187" Name="lblStar" Width="17" Foreground="Red" />
        <Label Content="*" FontFamily="Candara" FontSize="14" FontWeight="Bold" Foreground="Red" HorizontalAlignment="Left" Margin="76,176,0,149" Name="label1" Width="17" />
        <Label Content="*" FontFamily="Candara" FontSize="14" FontWeight="Bold" Foreground="Red" HorizontalAlignment="Left" Margin="125,227,0,98" Name="label4" Width="17" />
        <Label Content="*" FontFamily="Candara" FontSize="14" FontWeight="Bold" Foreground="Red" HorizontalAlignment="Left" Margin="107,137,0,188" Name="label5" Width="17" Grid.Column="2" />
        <Label Content="*" FontFamily="Candara" FontSize="14" FontWeight="Bold" Foreground="Red" HorizontalAlignment="Left" Margin="111,230,0,95" Name="label2" Width="17" Grid.Column="2" Grid.ColumnSpan="2" />
    </Grid>
</UserControl>
